<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-once</title>
</head>
<body>

<!--v-once 禁止某一标签的Mustache直进行响应式更新-->
<div id="app">
  <h2>{{message}} {{counter}}</h2>
  <h2 v-once>{{message}} {{counter}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue',
      counter:100
    }
  });
</script>
</body>
</html>
